
package com.one.odf.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for periodType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="periodType"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="ExtendedPeriods" type="{}extendedPeriodsType" minOccurs="0"/&gt;
 *       &lt;/sequence&gt;
 *       &lt;attribute name="Code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
 *       &lt;attribute name="HomeScore" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *       &lt;attribute name="AwayScore" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *       &lt;attribute name="HomePeriodScore" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *       &lt;attribute name="AwayPeriodScore" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *       &lt;attribute name="Duration" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "periodType", propOrder = {
    "extendedPeriods"
})
public class PeriodType {

    @XmlElement(name = "ExtendedPeriods")
    protected ExtendedPeriodsType extendedPeriods;
    @XmlAttribute(name = "Code", required = true)
    protected String code;
    @XmlAttribute(name = "HomeScore")
    protected String homeScore;
    @XmlAttribute(name = "AwayScore")
    protected String awayScore;
    @XmlAttribute(name = "HomePeriodScore")
    protected String homePeriodScore;
    @XmlAttribute(name = "AwayPeriodScore")
    protected String awayPeriodScore;
    @XmlAttribute(name = "Duration")
    protected String duration;

    /**
     * Gets the value of the extendedPeriods property.
     * 
     * @return
     *     possible object is
     *     {@link ExtendedPeriodsType }
     *     
     */
    public ExtendedPeriodsType getExtendedPeriods() {
        return extendedPeriods;
    }

    /**
     * Sets the value of the extendedPeriods property.
     * 
     * @param value
     *     allowed object is
     *     {@link ExtendedPeriodsType }
     *     
     */
    public void setExtendedPeriods(ExtendedPeriodsType value) {
        this.extendedPeriods = value;
    }

    /**
     * Gets the value of the code property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCode() {
        return code;
    }

    /**
     * Sets the value of the code property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCode(String value) {
        this.code = value;
    }

    /**
     * Gets the value of the homeScore property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getHomeScore() {
        if (homeScore == null) {
            return "";
        } else {
            return homeScore;
        }
    }

    /**
     * Sets the value of the homeScore property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setHomeScore(String value) {
        this.homeScore = value;
    }

    /**
     * Gets the value of the awayScore property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getAwayScore() {
        if (awayScore == null) {
            return "";
        } else {
            return awayScore;
        }
    }

    /**
     * Sets the value of the awayScore property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAwayScore(String value) {
        this.awayScore = value;
    }

    /**
     * Gets the value of the homePeriodScore property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getHomePeriodScore() {
        if (homePeriodScore == null) {
            return "";
        } else {
            return homePeriodScore;
        }
    }

    /**
     * Sets the value of the homePeriodScore property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setHomePeriodScore(String value) {
        this.homePeriodScore = value;
    }

    /**
     * Gets the value of the awayPeriodScore property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getAwayPeriodScore() {
        if (awayPeriodScore == null) {
            return "";
        } else {
            return awayPeriodScore;
        }
    }

    /**
     * Sets the value of the awayPeriodScore property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAwayPeriodScore(String value) {
        this.awayPeriodScore = value;
    }

    /**
     * Gets the value of the duration property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getDuration() {
        if (duration == null) {
            return "";
        } else {
            return duration;
        }
    }

    /**
     * Sets the value of the duration property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setDuration(String value) {
        this.duration = value;
    }

}
